<?
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=textxls.xls");
?>
<html>
<head>
<title>Titulo</title>
</head>
<body>
Aqui Inicia el cuerpo del archivo
<table border=2 cellpadding=1 cellspacing=1>
<caption>Titulo de Tabla</caption>
<tr><th>Name<th>Address<th>Address2<th>Phone<th style="width:200px">Income</tr>
<tr><td>John<td>Street<td>US<td>="23993"<td>6,500.00</tr>
<tr><td>Antonio<td>21 St<td>Center Street<td>="29039"<td>4,000</tr>
<tr><td><td><td><td><td>=sum(e4..e5)</tr>
</table>
</body> 
